#define _CRT_SECURE_NO_WARNINGS 1
#include"vector.h"

namespace x {
	void test_vector4()
	{
		vector<int> v;
		v.push_back(1);
		v.push_back(2);
		v.push_back(3);
		v.push_back(4);
		/*auto p = find(v.begin(), v.end(), 2);
		p=v.insert(p, 30);
		(*p) *= 10;*/

		/*for (size_t i=0;i<v.size();++i)
		{
			cout << v[i] << "";
		}*/
		/*for (auto e : v)
		{
			cout << e << "";
		}
		cout << endl;*/

		/*auto it = v.begin();
		while (it != v.end())
		{
			if (*it % 2 == 0)
			{
				it=v.erase(it);
			}
			else
				++it;
		}*/
		v.resize(10, 1);
		print_container(v);
	}

	void test_vector5()
	{
		vector<int> v;
		v.push_back(1);
		v.push_back(2);
		v.push_back(3);
		v.push_back(4);

		vector<int> v1(v);
		vector<int> v2 = v1;
		vector<int> v3(v2.begin(), v2.end());
		vector<int> v4(10, 3);
		vector<string> v5(5, "aaaaaaaaaaa");
		print_container(v5);
	}

}